From 0c17d94c4d1303d73b3ad3e7a9dfef1fb8f0a883 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 12 Nov 2024 16:05:53 +0200 Subject: Backup --- src/pages/blogs/[...slug].astro | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/pages/blogs/[...slug].astro (limited to 'src/pages/blogs/[...slug].astro') diff --git a/src/pages/blogs/[...slug].astro b/src/pages/blogs/[...slug].astro new file mode 100644 index 0000000..417d1a6 --- /dev/null +++ b/src/pages/blogs/[...slug].astro @@ -0,0 +1,32 @@ +--- +import Markdown from "../../components/MarkdownB.astro"; +import { getCollection } from "astro:content"; + +export async function getStaticPaths() { + const blogEntries = await getCollection("blogs"); + return blogEntries.map((entry) => ({ + params: { slug: entry.slug }, + props: { entry }, + })); +} + +const { entry } = Astro.props; +const { Content } = await entry.render(); +--- + + + + + + + + + + Test + + +
+ +
+ + -- cgit v1.3.1